package com.df.gateway.entity;

import com.df.base.entity.MessageWrapper;
import io.netty.channel.Channel;
import lombok.Data;

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.LinkedBlockingQueue;

@Data
public class Client {
    //客户端关联的channel
    Channel channel;
    //客户端的token(包含用户id，ip，设备号等)
    String token;
    //是否认证过了（token检查了合法性了）
    boolean authed;
    public LinkedBlockingQueue<MessageWrapper> msgs = new LinkedBlockingQueue<>();
}
